home *** CD-ROM | disk | FTP | other *** search
-
-
-
- GETPID(3) MINTLIB LIBRARY FUNCTIONS GETPID(3)
-
-
- N✓NA✓AM✓ME✓E
- getpid, getprgp, getppid - get process, process group,
- and parent process IDs
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <unistd.h>
-
- int getpid(void);
-
- int getprgp(void);
-
- int getppid(void);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- getpid returns the process ID of the calling process.
-
- getpgrp returns the process group ID of the calling pro-
- cess.
-
- getppid returns the parent process ID of the calling pro-
- cess.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- s✓se✓et✓tp✓pg✓gr✓rp✓p(✓(3✓3)✓),✓, P✓Pg✓ge✓et✓tp✓pi✓id✓d(✓(2✓2)✓),✓, P✓Pg✓ge✓et✓tp✓pg✓gr✓rp✓p(✓(2✓2)✓),✓, P✓Pg✓ge✓et✓tp✓pp✓pi✓id✓d(✓(2✓2)✓)
-
- N✓NO✓OT✓TE✓ES✓S
- When MiNT is not active, the 16 most significant bits of
- the basepage of the process are returned for getpid; 0 is
- returned for getpgrp; the 16 most significant bits of the
- parents process' basepage are returned for getppid.
-
- It seems that the BSD UN*X version of getpgrp takes an
- argument.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-